package Interview;

import java.util.concurrent.Callable;

public class D7 implements Callable<Object>{
	private int age;
	public D7(int age) {
		super();
		this.age = age;
	}
	@Override
	public Object call() throws Exception {
		for (int i = 0; i < 10; i++) {
		    System.out.println(this.age);
		}
		return "dcsdcsdcds";
	}

	public static void main(String[] args) throws Exception {
		D7 d1 = new D7(0);
		D7 d2 = new D7(1);
		D7 d3 = new D7(2);
		D7 d4 = new D7(3);
		D7 d5 = new D7(4);
		D7 d6 = new D7(5);
		D7 d7 = new D7(6);
//		Object d = d1.call();
		d2.call();
		d3.call();
		d4.call();
		d5.call();
		d6.call();
		d7.call();
	}

}
